<!--TODO 数据需要-->
<% include ../header.ejs %>

<link rel="stylesheet" href="/stylesheets/app/evaluate/evaluate_servicelist.css">

<link rel="stylesheet" href="/lib/datetimepicker/css/amazeui.datetimepicker.css"/>

<script src="/lib/datetimepicker/js/amazeui.datetimepicker.min.js"></script>
<script src="/lib/datetimepicker/js/locales/amazeui.datetimepicker.zh-CN.js"></script>
<script src="/lib/socketio/socket.io.js"></script>
<style>
    .datetimepicker {
        margin-top: 0px;
    }
    .icon-red{
        color: red;
    }
    .icon-green{
        color: green;
    }
    .icon-darkgrey{
        color: darkgrey;
    }

</style>

<header data-am-widget="header" data-am-sticky class="am-header am-header-default" id="appTemplates-Nav">
    <div class="am-header-left am-header-nav">
        <a href='/smtool_project/wxapp/' class="">
            <img class="am-header-icon-custom" src="data:image/svg+xml;charset&#x3D;utf-8,&lt;svg xmlns&#x3D;&quot;http://www.w3.org/2000/svg&quot; viewBox&#x3D;&quot;0 0 12 20&quot;&gt;&lt;path d&#x3D;&quot;M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z&quot; fill&#x3D;&quot;%23fff&quot;/&gt;&lt;/svg&gt;" alt=""/>
        </a>
    </div>

    <h1 class="am-header-title">
        <a href="#title-link" class="" id="Typeface-whitecolor">最新晨会</a>
    </h1>


    <div class="am-header-right am-header-nav">
        <!--<a href="tel:111111111" class="">-->
            <!--<i class="am-header-icon am-icon-phone"></i>-->
        <!--</a>-->
        <a href="/smtool_project/wxapp/morningconference/add" class="">
            <i class="am-header-icon am-icon-plus" ></i>
        </a>
    </div>
</header>

<div data-am-widget="list_news"
     class="am-list-news am-list-news-default " style="margin: 0" ng-app="morningconferenceList" ng-controller="listController">

    <div id="datetimepicker11" data-am-datepicker></div>

    <!--<p class="am-monospace"  style="text-align: center;margin-top: 5px;margin-bottom: 0px" id="manage">2017-06-08 星期四 8:30 </p>-->

    <div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi" style="margin-top: 5px">
        <h2 class="am-titlebar-title ">
            晨会
        </h2>
    </div>
    <div class="am-list-news-bd">
        <ul class="am-list" id="">
            <li class="am-list-item-desced am-list-item-thumbed"  ng-repeat="data in datas">
                <div class="am-list-main" >
                    <div class="am-g">
                        <div class="am-u-sm-12" ng-click="toDetail(data.rowId)">
                            <div class="am-list-item-hd am-g am-div-margin">
                                <a class="am-u-sm-5" >
                                    <h3 class="am-list-item-hd">{{data.analyst.name }}</h3>

                                </a>
                                <a class="am-u-sm-7 am-fr">
                                    <div  style="text-align:center"><small class="am-list-item-hd am-fl">{{data.createdAt}}</small>
                                        <span ng-if="data.comments.length >0" class="am-badge am-badge-danger am-fr am-round">{{data.comments.length}}</span>
                                    </div>

                                </a>
                            </div>

                            <div class="am-list-item-hd am-g am-div-margin" >
                                <span ng-if="data.recommends && data.recommends.length==1" class="am-u-sm-12" ng-repeat="item in data.recommends">
                                     <h8 class="am-u-sm-4" >{{item.stockCode}}</h8>
                                    <h8 class="am-u-sm-4" >{{item.stockName}}</h8>
                                    <h8 class="am-u-sm-4" >
                                      <i ng-class ="{'am-icon-arrow-up icon-red':item.trade=='买入','am-icon-arrow-down icon-green':item.trade=='卖出','am-icon-stop icon-darkgrey':item.trade=='持有'}"></i>
                                    </h8>
                                </span>
                                <span ng-if="data.recommends && data.recommends.length>1" class="am-u-sm-4" ng-repeat="item in data.recommends">
                                    <h8 class="am-u-sm-4 am-text-sm" style="width:100%">{{item.stockCode}}</h8>
                                    <h8 class="am-u-sm-4 am-text-sm" style="width:100%">
                                        {{item.stockName}}
                                        <i ng-class ="{'am-icon-arrow-up icon-red':item.trade=='买入','am-icon-arrow-down icon-green':item.trade=='卖出','am-icon-stop icon-darkgrey':item.trade=='持有'}"></i>
                                    </h8>

                                </span>
                            </div>
                            <div class="am-list-item-hd am-g am-div-margin">
                                <a class="am-u-sm-12" >
                                    <span  class="am-u-sm-8 am-badge am-badge-warning am-radius" style="width:50%" ng-if="data.industry.industryName"> {{data.industry.industryName}}-{{ data.type}}</span>
                                    <span class="am-u-sm-4 am-badge am-badge-secondary am-radius" ng-if="data.quotation" > {{data.quotation}}</span>
                                </a>
                                <a class="am-u-sm-12" >
                                      {{ data.corePoint }}
                                </a>
                            </div>
                        </div>
                     <!--   <a class="am-u-sm-1 am-icon-phone"  ng-click="call(data.contact)">-->
                        </a>
                    </div>
                </div>
            </li>
        </ul>
    </div>



</div>
<!--<input type="text" id="m" /><button id="a">aaa</button>-->
<script src="/javascripts/app/morningconference/morningconferenceIndex.js"></script>
<script>
    <!--var socket = io.connect('http://192.168.10.18:3000');-->
    <!--var name = '<%=userinfo.name;%>';-->
    <!--socket.emit('user join', name );-->
    <!--$("#a").click(function (){-->
        <!--socket.emit('chat message', {-->
            <!--msg: $('#m').val(),-->
            <!--user: '王金杰',-->
            <!--to: '周健'-->
        <!--});-->
    <!--})-->



    <!--socket.on('to' + name, function(data) {-->
        <!--console.log(data);-->
        <!--//formatMsg(data);-->
    <!--})-->
    <!--socket.on('c_hi', function (data) {-->
        <!--console.log("11111111111111111"+data);-->
        <!--//socket.emit('hi', { my: 'data' });-->
    <!--});-->
</script>

<% include ../footer.ejs %>

